package org.javaboy.demo.controller;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

/**
 * 这就是一个 Controller
 */
public class HelloController implements Controller {
    @Override
    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
        System.out.println("HelloController");
//        ModelAndView mv = new ModelAndView("/jsp/01.jsp");
//        ModelAndView mv = new ModelAndView("/freemarker/01.ftlh");
        ModelAndView mv = new ModelAndView("01");
        return mv;
    }
}
